/**
 * @mbg.generated generator on Fri Apr 21 23:00:39 CST 2023
 */
package com.ybox.app.service.impl;

import com.ybox.app.domain.AppUserArticle;
import com.ybox.app.mapper.AppUserArticleMapper;
import com.ybox.app.service.AppUserArticleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 16554
 */
@Service
public class AppUserArticleServiceImpl implements AppUserArticleService {
    private final AppUserArticleMapper appUserArticleMapper;

    public AppUserArticleServiceImpl(AppUserArticleMapper appUserArticleMapper) {
        this.appUserArticleMapper = appUserArticleMapper;
    }

    /**
     * insert
     * @param row row
     * @return int int
     */
    @Override
    public int insert(AppUserArticle row) {
        return appUserArticleMapper.insert(row);
    }

    /**
     * insertSelective
     * @param row row
     * @return int int
     */
    @Override
    public int insertSelective(AppUserArticle row) {
        return appUserArticleMapper.insertSelective(row);
    }

    @Override
    public int deleteUserArticleByUserId(Long userId) {
        return appUserArticleMapper.deleteUserArticleByUserId(userId);
    }

    @Override
    public int deleteUserArticleInfo(AppUserArticle appUserArticle) {
        return appUserArticleMapper.deleteUserArticleInfo(appUserArticle);
    }

    @Override
    public int deleteUserArticleInfos(Long userId, String[] articleIds) {
        return appUserArticleMapper.deleteUserArticleInfos(userId, articleIds);
    }

    @Override
    public Integer countUserArticleByUserId(Long userId) {
        return appUserArticleMapper.countUserArticleByUserId(userId);
    }

    @Override
    public List<AppUserArticle> selectArticleIdByUserId(Long userId) {
        return appUserArticleMapper.selectArticleIdByUserId(userId);
    }
}